home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir36
/
zipall12.zip
/
UNZIPALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-05-02
|
2KB
|
38 lines
@echo off
REM
REM UNZIPALL.BAT
REM
REM This BAT file can be executed from within any subdirectory to cause PKUNZIP
REM to explode an ALLFILES.ZIP file previously created using the ZIPALL.BAT
REM or ZIPALLT.BAT batch files. Child subdirectories, if any, will be created
REM as necessary. Hidden, Readonly, and System attributes will be applied for
REM for those files that were zipped with these attributes.
REM The Archive attribute will be turned off for all files after unzipping.
REM This facilitates identifying changed or added files when RESTZIP.BAT runs.
REM The MS-DOS ATTRIB command will not reset the Archive bit for Hidden or
REM System files, however, so Patri-Soft's PATTR.EXE is used for this task.
REM To avoid the possibility of overwriting an existing file with an older
REM file being unzipped from ALLFILES.ZIP the -n switch limits the extract to
REM files that are newer than those on the target directory and files that
REM don't exist at all on the target directory.
REM This BAT file:
REM requires the use of the MS-DOS 5.0 (+) DIR command.
REM requires the use of Patri-Soft's PATTR.EXE (Shareware) -- See ARCOFF.BAT
REM requires my FEED.EXE (Freeware)
REM
pkunzip allfiles -d -Jhrs -n
if errorlevel 1 goto errexit
prompt $P$G RZ!
attrib -a *.* /s
dir /aa /b /s | feed arcoff.bat
dir
echo ALLFILES.ZIP has been extracted.
echo Remember to use RESTZIP.BAT to restore the ALLFILES.ZIP file, later.
echo The change to your prompt is a reminder, to do so. RESTZIP will reset
echo the prompt to $P$G. Edit to your liking in RESTZIP.BAT and UNZIPALL.BAT.
goto exit
:errexit
echo Error in execution of PKUNZIP (via UNZIPALL.BAT).
:exit
echo on